package com.zd.springcloud.order.mapper;

<<<<<<< HEAD:springcloud-nacos-order/src/main/java/com/zd/springcloud/mapper/OrderMapper.java
import com.zd.springcloud.base.BaseMapper;
import com.zd.springcloud.domain.Order;
=======
>>>>>>> a78a59f7e9652635f56bbcd587409434b2c8ef12:springcloud-nacos-order/src/main/java/com/zd/springcloud/order/mapper/OrderMapper.java

import com.zd.springcloud.domain.Order;

public interface OrderMapper extends BaseMapper {

    /**
     * 添加订单 try阶段
     */

    void addOrder(Order order);

    /**
     *
     *  commit 阶段，更新订单的状态，未支付改为已支付
     *
     */

    void commit(Order order);


    /**
     * 事务回滚，删除订单
     *
     */

    void rollback(Order order);




}
